package com.itqf.anno;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/19
 * @Time: 下午4:23
 */
@Configuration   //等价于 spring配置文件
//@Component  构建对象,位置：类前 <bean class="">
@ImportResource(locations = "classpath:spring-mybatis-plus.xml")
public class BeanConfig {

    @Bean  //构建对象，位置：方法前 <bean class="">
    public Student student(){
        return new Student();
    }

}
